import React, { Component } from 'react';
import { useNavigate } from 'react-router-dom'
import {Button} from 'antd';
import ClassComp from '../../components/Class';


function Home () {
  const navigate = useNavigate();
    return (
        <div>
            <h1>我是主页</h1>
            <Button type='primary' onClick={()=> navigate('/login')}>跳转到登录页</Button>
            { <ClassComp/> }
        </div>
    );
}

export default Home;